RUST_PROJECT_PATH=demo

# 设置工具链版本
cat > rust-toolchain.toml <<EOF
[toolchain]
channel = "nightly-2024-02-03"
EOF

# vendor and do magic
cd $RUST_PROJECT_PATH
cargo vendor --versioned-dirs ../deps
python3 ../magic.py

# analysis
run_rupta.sh

python3 ../dead_code_remover.py
